package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import android.app.Activity;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.entity.ToubiaoBasicInfoEntity;
import com.google.gson.reflect.TypeToken;
/**
 * 投标
 * 
 */
public class ToubiaoInfoModel extends HttpRequest<ToubiaoBasicInfoEntity>{

	public ToubiaoInfoModel(Activity activity, RequestCallBack<ToubiaoBasicInfoEntity> callback) {
		super(activity, callback);
		// TODO Auto-generated constructor stub
	}

	@Override
	public String getURL() {
		// TODO Auto-generated method stub
		return Config.getIP() + Config.getToubiaoInfo();
	}
	public void doNet(String id) {
		mPostValues.put("a", "detail");
		mPostValues.put("id", id);
		mPostValues.put("m", "Invest");		
		requestByPost();
	}
	
	public Type getType(){
		return new TypeToken<ToubiaoBasicInfoEntity>() {}.getType();
	}

	@Override
	public Class<ToubiaoBasicInfoEntity> getClazz()
	{
		return ToubiaoBasicInfoEntity.class;
	}

}
